package org.springsource.services.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springsource.dao.CategoryDao;
import org.springsource.domain.Category;
import org.springsource.services.CategoryService;

@Service
public class CategoryServiceImpl implements CategoryService {

	@Autowired
	private CategoryDao categoryDao;
	
	@Override
	public Category getCategory(Long id) {
		return this.categoryDao.getCategory(id);
	}

	@Override
	public Category saveCategory(Category category) {
		return this.categoryDao.saveCategory(category);
	}

}
